beginobjectscript; // thorns

variables;
body;

beginstate INIT_STATE;
	break;

beginstate DEAD_STATE;

break;

beginstate START_STATE;

break;

beginstate USE_STATE;
	//if ((current_zone() == 10) && (get_sdf(10,3) == 0)) {
	//	set_flag(10,3,1);
	//	begin_talk_mode(1);
	//	end();
	//	}

	if (get_sdf(get_memory_cell(0),get_memory_cell(1)) > 0)
		print_str("You search the thorn bush, but none of the thorns are ready yet.");
		else {
			set_flag(get_memory_cell(0),get_memory_cell(1),1);
			pc_heard_sound(152);		
			print_str("You give the thorn bush a good shake. Some thorns fall out.");
			if (get_ran(1,0,100) < 75)
				drop_item(110);
			else if (get_ran(1,0,100) < 75)
				drop_item(111);
			else if (get_ran(1,0,100) < 75)
				drop_item(112);
			else if (get_ran(1,0,100) < 75)
				drop_item(113);
			else drop_item(114);
			}

break;
